package org.example.demo.service.backend;

import org.example.demo.dto.CarrierDTO;
import org.fisco.bcos.sdk.transaction.model.exception.ContractException;

import java.math.BigInteger;

public interface CarrierBackendService {

    // 注册
    boolean addCarrier(CarrierDTO carrierDTO);

    // 验证
    boolean checkCarrier(int id, String passwd) throws ContractException;

    BigInteger[] getShipmentsByCarrier(int id) throws ContractException;
}
